package com.wang.designpattern.strategy;

public class Client {
    public static void main(String[] args) {
        Duck duck = new WildDuck();
        duck.display();
        duck.fly();
        duck.quack();
        System.out.println("********************************");
        Duck duck2 = new PekingDuck();
        duck2.display();
        duck2.fly();
        duck2.quack();
        System.out.println("********************************");
        Duck duck3 = new ToyDuck();
        duck3.display();
        duck3.fly();
        duck3.quack();
    }
}
